package cn.powertime.evaluation.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class ReqTestPaperVo implements Serializable {

    @ApiModelProperty(value = "试卷ID", position = 1)
    @NotNull(message = "试卷ID不能为空")
    private Long testPaperId;

    /*@ApiModelProperty(value = "试卷名称", position = 2)
    @NotBlank(message = "试卷名称不能为空")
    private String title;

    @ApiModelProperty(value = "试卷类型:课后作业，2：课程刷题，3：真题模拟，4：测评练习，5：自查工具", position = 3)
    @NotNull(message = "试卷类型不能为空")
    @Min(value = 1, message = "试卷类型最小值为1")
    @Max(value = 5, message = "试卷类型最大值为5")
    private Integer type;

    @ApiModelProperty(value = "归属课程ID", position = 4)
    @NotNull(message = "归属课程ID不能为空")
    private Long courseId;

    @ApiModelProperty(value = "归属章节ID", position = 5)
    @NotNull(message = "归属章节ID不能为空")
    private Long chapterId;

    @ApiModelProperty(value = "归属小节ID", position = 6)
    @NotNull(message = "归属小节ID不能为空")
    private Long sectionId;

    @ApiModelProperty(value = "归属测评练习ID", position = 7)
    @NotNull(message = "归属测评练习ID不能为空")
    private Long practiceId;*/

    @ApiModelProperty(value = "习题列表", position = 2)
    @Valid
    private List<ReqTopicListVo> topicList;

    public Long getTestPaperId() {
        return testPaperId;
    }

    public void setTestPaperId(Long testPaperId) {
        this.testPaperId = testPaperId;
    }

    @Override
    public String toString() {
        return "{" +
                "testPaperId:" + testPaperId +
                ", topicList:" + topicList.toString() +
                '}';
    }
}
